package com.session01.pm;

public class Pointer {
    double x;
    double y;

    public double getDistance(Pointer p) {
        double value = Math.sqrt((p.y - this.y) * (p.y - this.y) + (p.x - this.x) * (p.x - this.x));
        return value;
    }
}
